<?php
/**
* message.php
*
* Create on 2016-11-21
* Create by TT
*/
namespace haibao\cms\model\data\nh;

class Message extends \haibao\cms\model\data\Base {
	
	/**
	 * 回复消息类型（文字）
	 */
	const REPLY_TYPE_TEXT = 'text';
	
	/**
	 * 回复消息类型（图文）
	 */
	const REPLY_TYPE_NEWS = 'news';
	
	
	/**
	 * 已发送
	 */
	const STATUS_TYPE_SEND = 1;
	/**
	 * 未发送
	 */
	const STATUS_TYPE_NOSEND = 0;

	public $OpenId;
	public $Message;
	public $CreateTime;
	public $Status;


	public function __construct() {
		parent::__construct ();
		$this->stringField ( 'OpenId', 'OpenId' );
		$this->stringField ( 'Message', 'Message' );
		$this->dateField('CreateTime', 'CreateTime' );
		$this->intField ( 'Status', 'Status' );

		$this->setTableName ( 'NH_WeixinMessage' );
	}
}